@import "../../../assets/css/utils";

$fixed-buy-footer-height: 166px;

.page-goods-detail {

  &.is-fixed-float {
    .head-top-tab {
      transition-duration: 300ms;
      background-color: #fc695d;

      p {
        &.is-selected {
          border-bottom-color: #fff;
        }
      }
    }
  }

  &.skeleton {
    background-color: #f5f5f5;

    .head-top-tab {
      @include skeleton-bgColor();

      * {
        //color: transparent !important;
        border: transparent;
        background-image: none;
      }

      .back-icon {
        visibility: hidden;
      }
    }

    .goods-swiper {
      background-color: #f5f5f5;
      background: {
        repeat: no-repeat;
        position: center;
        size: 100% auto;
        image: url('../../../assets/img/lazy.png');
      };
    }

    .introduction {
      .price-info, .name, .goods-no {
        @include skeleton-bgColor();
        margin-bottom: 20px;
      }

      .name {
        height: 40px;
        width: 40%;
      }

      .goods-no, .other-attr {
        height: 40px;
      }
    }

    .row-select-group {
      .detail-left {
        @include skeleton-bgColor();
      }
    }

    .row-select, .introduction, .evaluation {
      * {
        color: transparent !important;
      }

      .tag {
        @include skeleton-bgColor();
      }
    }

    .fixed-buy-footer {
      visibility: hidden;
    }
  }

  padding-bottom: ($fixed-buy-footer-height)+40px;

  min-height: 100%;

  background-color: #fffaf8;

  .head-top-tab {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 5;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);

    .item-row {
      align-items: center;
      justify-content: center;
      height: 100%;
      padding: 0 30px;
    }

    p {
      margin-top: 36px;
      font-size: 38px;
      color: #fff;
      border-bottom: 1px solid transparent;
      padding-bottom: 6px;

      &.is-selected {
        border-bottom-color: #fe7537;
      }
    }

    .back-icon {
      position: absolute;
      z-index: 2;
      width: 60px;
      height: 60px;
      left: 30px;
      top: 30px;
      border-radius: 30px;
      display: flex;
      align-self: baseline;
      justify-content: center;
      color: #fff;
      border: solid 1px #ffffff;

      .iconfont {
        margin-top: 10px;
      }
    }

    .icon-guanbi {
      position: absolute;
      font-weight: bold;
      z-index: 2;
      left: 30px;
      top: 40px;
      font-size: 50px;
      color: #fff;
    }
  }

  .goods-swiper {
    width: 100%;
    height: 750px;
    position: relative;
    z-index: 4;

    .swipe-row {
      position: relative;
      height: 750px;
      width: 100%;

      img {
        width: 100%;
      }
    }

    .custom-indicator {
      position: absolute;
      right: 30px;
      bottom: 20px;
      width: 100px;
      height: 40px;
      background-color: rgba(153, 153, 153, 0.25);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
      color: #ffffff;
    }

    .play-icon {

    }

    .player-container {
      position: absolute;
      left: 0;
      top: 0;
      z-index: 2;
      width: 100%;
      height: 100%;
      padding-top: 100px;
      background-color: #000;

      .player {
        width: 100%;
        height: 100%;

        &.is-hide {
          display: none;
        }
      }
    }

    .van-swipe-container {
      position: relative;
      z-index: 3;
    }


    .icon-bofang {
      position: absolute;
      z-index: 3;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      font-size: 180px;
      font-weight: bold;
      color: #fff;
    }
  }

  .introduction {
    padding: 30px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;

    .price-info {
      font-size: 30px;
      color: #fe7537;
      display: flex;

      .size {
        font-weight: bold;
        font-size: 36px;
        color: #fe7537;
      }
    }

    .name {
      padding-top: 10px;
      padding-bottom: 16px;
      font-size: 30px;
      color: #2e2e2e;
    }

    .goods-no {
      font-size: 30px;
      color: #999;
      padding-bottom: 20px;
    }

    .tag {
      display: flex;
      align-items: center;
      align-self: baseline;
      justify-content: center;
      padding: 10px 20px;
      min-height: 36px;
      background-color: rgba(207, 73, 73, 0.05);
      border-radius: 10px;
      font-size: 24px;
      color: #fb5056;
      margin-bottom: 10px;
    }

    .other-attr {
      padding-top: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      li {
        flex: 1;
        font-size: 24px;
        color: #c1c4c9;
        text-align: center;

        &:first-child {
          text-align: left;
        }

        &:last-child {
          text-align: right;
        }
      }
    }

    .goods-no {

    }
  }

  .row-select-group {
    margin-bottom: 16px;
  }

  .row-select {
    background-color: #fff;
    margin-bottom: 2px;
    height: 100px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .detail-left {
      display: flex;
      align-items: center;
      flex: 1;
      width: 0;
    }

    .iconfont {

    }

    .name {
      width: 100px;
      font-size: 24px;
      color: #666;
    }

    .title {
      padding-right: 40px;
      @include ellipsis();
      width: 700px;
      font-size: 30px;
      color: #2e2e2e;
    }
  }

  .goods-details {
    padding: 10px 0;
    margin: 10px 0;
    background-color: #fff;

    img {
      margin: 0 auto;
      width: 100% !important;
    }
  }

  .evaluation {


    .top-head {
      background-color: #fff;
      height: 126px;
      padding: 0 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .title {
        font-size: 30px;
        color: #2e2e2e;
      }

      .all {
        display: flex;
        align-items: center;
        font-size: 24px;
        color: #666666;
      }
    }

    .tag-list {
      background-color: #fff;
      flex-wrap: wrap;
      padding-bottom: 20px;
      margin-bottom: 2px;
      display: flex;
      align-items: flex-start;

      li {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 30px;
        padding: 0 21px;
        height: 56px;
        background-color: rgba(207, 73, 73, 0.05);
        border-radius: 28px;
        font-size: 30px;
        color: #666;
        margin-bottom: 14px;
      }

      .size {
        padding-left: 20px;
      }
    }

    .detail-list {
      background-color: #fff;

      li {
        padding: 27px;
        border-bottom: 1px solid #fffaf8;
      }

      .user-info {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .detail {
          display: flex;
          align-items: center;
          flex: 1;
        }

        .nickname {
          padding-left: 21px;
          font-size: 30px;
          color: #2e2e2e;
        }

        .icon-wrap {
          width: 80px;
          height: 80px;

          img {
            width: 100%;
            height: 100%;
            border-radius: 28px;
          }
        }

        .start {
          display: flex;
          align-items: center;
          justify-content: center;

          .iconfont {
            color: #f5b356;
            margin: 0 4px;
            font-size: 14px;
          }
        }
      }

      .content {
        font-size: 30px;
        padding-top: 32px;
        padding-bottom: 20px;
      }

      .pic-list {
        display: flex;
        align-items: center;
        flex-wrap: wrap;

        .icon-wrap {
          width: 140px;
          height: 150px;
          margin-bottom: 10px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 34px;
        }
      }

    }

    .none-data {
      text-align: center;
      font-size: 30px;
      padding: 20px;
      color: #999;
    }

  }

  .fixed-buy-footer {
    position: fixed;
    width: 100%;
    padding-left: 30px;
    left: 0;
    bottom: 0;
    height: $fixed-buy-footer-height;
    background-color: #ffffff;
    box-shadow: 0px 2px 8px 0px rgba(245, 179, 86, 0.36);
    display: flex;
    align-items: center;

    .buy-btn {
      position: absolute;
      right: 30px;
      top: 50%;
      transform: translate(0, -50%);
      display: flex;
      align-items: center;
      justify-content: center;
      width: 200px;
      height: 76px;
      background-color: #fb4f54;
      border-radius: 38px;
      font-size: 36px;
      color: #ffffff;
    }

    .action-item {
      height: 100%;
      text-align: center;
      font-size: 24px;
      color: #2e2e2e;
      margin-right: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;


      .iconfont {
        color: #fc5d49;
        font-size: 50px;
      }

      p {
        padding-top: 20px;
      }

    }

  }

  .select-modal {
    padding: 30px;
    background-color: #fff;

    $topHeightSize: 240px;
    $bottomHeightSize: 220px;

    &_bd {
      position: relative;
    }

    .close-icon {
      position: absolute;
      z-index: 3;
      width: 36px;
      height: 36px;
      right: 30px;
      top: 30px;
      font-size: 48px;
      color: #c1c4c9;
      font-weight: bold;
    }

    .product-head {
      padding: 32px;
      display: flex;
      align-items: flex-end;
      position: absolute;
      z-index: 2;
      left: 0;
      top: 0;
      width: 100%;

      .icon-wrap {
        width: 200px;
        height: 200px;
        overflow: hidden;
        display: flex;
        align-items: flex-end;

        img {
          width: 100%;;
        }
      }

      .detail {
        padding-left: 30px;
        flex: 1;
      }

      .price {
        display: flex;
        align-items: flex-end;
        font-size: 30px;
        color: #fe7537;

        .size {
          padding-left: 4px;
          font-size: 36px;
          color: #fe7537;
        }
      }

      .name {
        padding-top: 16px;
        font-size: 30px;
        color: #2e2e2e;
      }
    }

    .detail-content {
      padding-top: $topHeightSize;
      overflow: auto;
      max-height: 1200px;
      padding-bottom: $bottomHeightSize;
    }

    .attr-group {

      .title {
        padding-top: 20px;
        font-size: 34px;
        color: #2e2e2e;
        padding-bottom: 30px;
      }

      .option-list {
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;

        li {
          height: 52px;
          margin-right: 20px;
          line-height: 50px;
          background-color: #fdf6f6;
          padding: 0 26px;
          border-radius: 26px;
          color: #2e2e2e;
          margin-bottom: 20px;
          border: solid 1px transparent;
          @include ellipsis();
          font-size: 24px;

          &.is-selected {
            color: #fb4f54;
            border-color: #fb4f54;
          }
        }
      }
    }

    .fixed-group {
      height: $bottomHeightSize;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
    }

    .num-select {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 30px;
      height: 120px;

      .title {
        font-size: 34px;
        color: #2e2e2e;
      }
    }

    .btn-group {
      display: flex;
      align-items: center;
      height: 100px;

      .btn-action {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: #ffffff;
        background-color: #fe7537;
      }

      .buy-btn {
        background-color: #fb4f54;
      }
    }

    .calc-wrap {
      display: flex;
      align-items: center;

      .num {
        padding: 0 10px;
        font-size: 30px;
        color: #2e2e2e;
      }

      .iconfont {
        font-size: 46px;
        color: #999;
        margin: 0 10px;
      }
    }
  }

  .address-modal {
    max-height: 1200px;
    overflow: auto;

    .addressItem {
      margin-bottom: 0;
    }

    .address-row {
      border-bottom: 1px solid #f5f5f5;

      &.is-selected {
        * {
          color: #fb5056 !important;
        }
      }

      &:last-child {
        border-bottom: none;
      }
    }
  }
}
